import {tab} from './tab.ts'
import auth from './auth'
import cache from './cache'
import modal from './modal'
import {download} from './download'

import * as ruoyiUtil from '@/utils/ruoyi'
import { useDict } from '@/utils/dict'

// 直接导出模块组合,带$的有多种方法，不带的只有一个
const plugins = {
  $tab: tab,
  $auth: auth,
  $cache: cache,
  $modal: modal,
  $download: download,
  useDict:useDict,
  $ruoyiUtil:ruoyiUtil
}

// 仅提供组合式函数
export function usePlugins() {
  return plugins
}